import Vue from 'vue'
import Router from 'vue-router'
import Xq from '../components/Xiangqing'
import Home from '../components/class'
import Myclass from '../components/my_class'
import page from '../components/page'
// import gradezbo from '@/components/gradevideo/video/zbo'  //班级直播
//
// import gradedemand from '@/components/gradevideo/video/demand'  //班级点播

import answer from '@/components/gradevideo/answer/answer'  //班级答题

import submit from '@/components/gradevideo/answer/submit'  //班级答题提交

import anslysis from '@/components/gradevideo/answer/anslysis'  //班级答题解析
import Homepage from '@/components/home/Homepage'
//个人中心
import user from '@/components/center/user'
import Center from '@/components/center/Center'
import Denglu from '@/components/center/Denglu'
import Bangding from '@/components/center/Bangding'
import Now from '@/components/center/Now'
import Before from '@/components/center/Before'
import Code from '@/components/center/Code'
import Tel from '@/components/center/Tel'
import People from '@/components/center/People'
import Focus from '@/components/center/Focus'
import Collect from '@/components/center/Collect'
import Publish from '@/components/center/Publish'
import Buy from '@/components/center/Buy'
import Shouye from '@/components/home/Shouye'
import Zhuantike from '@/components/home/Zhuantike'
import specialtopic from '@/components/home/specialtopic'
import Zixun from '@/components/home/Zixun'
import News from '@/components/home/News'
import Gkecheng from '@/components/lesson/Gkecheng'
import Allforecast from '@/components/home/Allforecast'
import Kx from '@/components/home/Kx'
import Search from '@/components/home/Search'
import Sjieguo from '@/components/home/Sjieguo'
import Steach from '@/components/home/Steach'
import course from '@/components/lesson/course'
import Footer from '@/components/home/Footer'

import demand from '@/components/video/demand'
import demo from '@/components/video/demo'
// import zbo from '@/components/video/zbo'
import Zhiye from '@/components/lesson/Zhiye'


import xiaoqi from '@/components/lesson/xiaoqi'
import yanxiu from '@/components/home/yanxiu'
import discount from '@/components/home/discount'//轮播优惠
import skilldetail from '@/components/home/skilldetail'
import zhuzhi from '@/components/lesson/zhuzhi'     //主治医师
import Shouquan from '@/components/center/Shouquan'
import Swiper from '@/components/home/Swiper'
import zhiyejieguo from '@/components/home/zhiyejieguo'
import zbojieguo from '@/components/home/zbojieguo'
import Gd from '@/components/lesson/Gd'
import Found from '@/components/faxian/Found'
import Kefu from '@/components/faxian/Kefu'
import Teacher from '@/components/faxian/Teacher'
import Huodong from '@/components/faxian/Huodong'
import Allclass from '@/components/Allclass/Allclass'
import chooseyou from '@/components/Allclass/chooseyou'    //选择优惠券
import Order from '@/components/Allclass/Order'
import orderSuccess from '@/components/Allclass/orderSuccess'   //支付成功
import orderfail from '@/components/Allclass/orderfail'   //支付成功
import Pl from '@/components/lesson/Pl'
import Shezhi from '@/components/center/Shezhi'
import Aboutus from '@/components/center/Aboutus'
import Zhuce from '@/components/center/Zhuce'
import Study from '@/components/person/Study'
import Xiaoxi from '@/components/person/Xiaoxi'
import Tongzhi from '@/components/person/Tongzhi'
import Zan from '@/components/person/Zan'
import Youhui from '@/components/person/Youhui'
import Kehu from '@/components/person/Kehu'
import Tixian from '@/components/person/Tixian'
import severce from '@/components/person/severvice'
import Smima from '@/components/person/Smima'
import Qmima from '@/components/person/Qmima'
import Qianbao from '@/components/person/Qianbao'
import Xiugaimima1 from '@/components/person/Xiugaimima1'
import Xiugaimima2 from '@/components/person/Xiugaimima2'
import Xiugaimima3 from '@/components/person/Xiugaimima3'
import Txjilu from '@/components/person/Txjilu'
import Txmingxi from '@/components/person/Txmingxi'
import Xfjilu from '@/components/person/Xfjilu'
import Xfmingxi from '@/components/person/Xfmingxi'
import Yinhangka from '@/components/person/Yinhangka'
import Tjyinhangka from '@/components/person/Tjyinhangka'
import Khxiaofei from '@/components/person/Khxiaofei'
import Wjmima from '@/components/person/Wjmima'
import Zhzhuce from '@/components/person/Zhzhuce'
import newpassword from '@/components/person/newpassword'
import zaixiancongzhi from '@/components/person/zaixiancongzhi'
import myyouhui from '@/components/person/myyouhui'
import appdown from '@/components/person/appdown'


// 帮助中心
import ofterquestion from '@/components/person/ofterQuestion/ofterquestion'
import ofterdetail from '@/components/person/ofterQuestion/ofterdetail'
import quesSubmit from '@/components/person/ofterQuestion/quesSubmit'

// 会员介绍
import buyvip from '@/components/person/qikeyaVip/buyvip'
import buyiosvip from '@/components/person/qikeyaVip/buyiosvip'

// 题库购买记录
import buyrecord from '@/components/person/qikeyaVip/buyrecord'

// 404
import nofount from '@/components/person/nofount'


   
Vue.use(Router)

export default new Router({

  mode:'history',
  // base:'/web/',
  routes: [
		{ 
			path: '*',
		  component: nofount,
			meta: {
				title: '404',
			}
		},
    {
      path: '/gd',
      name: 'Gd',
      component: Gd
    },
		{
			path: '/appdown',       //下载
			name: 'appdown',
			component: appdown,
			meta: {
				title: '下载APP',
			}
		},
		{
			path: '/ofterquestion',       //帮助中心
			name: 'ofterquestion',
			component: ofterquestion,
			meta: {
				title: '帮助中心',
			}
		},
		{
			path: '/ofterdetail',       //帮助中心
			name: 'ofterdetail',
			component: ofterdetail,
			meta: {
				title: '帮助中心',
			}
		},
		{
			path: '/quesSubmit',       //问题反馈
			name: 'quesSubmit',
			component: quesSubmit,
			meta: {
				title: '问题反馈',
			}
		},
		{
			path: '/buyiosvip',       //会员介绍
			name: 'buyiosvip',
			component: buyiosvip,
			meta: {
				title: '会员介绍',
			}
		},
		{
			path: '/buyvip',       //会员介绍
			name: 'buyvip',
			component: buyvip,
			meta: {
				title: '会员介绍',
			}
		},
		{
			path: '/buyrecord',       //购买记录
			name: 'buyrecord',
			component: buyrecord,
			meta: {
				title: '购买记录',
			}
		},
	{
		path: '/severce',       
	    name: 'severce',
		component: severce,
		meta: {
			  title: '赛思医考帮用户协议',
	    }
	},
	{
		path: '/yanxiu',       
	    name: 'yanxiu',
		component: yanxiu,
		meta: {
			  title: '学历提升',
	    }
	},
	{
		path: '/skilldetail',       
	    name: 'skilldetail',
		component: skilldetail,
		meta: {
			  title: '学历提升',
	    }
	},
	
	{
		path: '/zbojieguo',       //执业搜索结果
	    name: 'zbojieguo',
		component: zbojieguo,
		meta: {
			title: '搜索结果',
	    }
  },
  {
		path: '/discount',       //执业搜索结果
	    name: 'discount',
		component: discount,
		meta: {
			title: '优惠',
	    }
	},
	{
		path: '/zhiyejieguo',       //执业搜索结果
	    name: 'zhiyejieguo',
		component: zhiyejieguo,
		meta: {
			  title: '搜索结果',
	    }
	},
	{
	  path: '/page',       //执业搜索结果
	  name: 'page',
	  component: page,
		meta: {
		  title: '',
	  }
	},
	{
	  path: '/chooseyou',       //选择优惠券
	  name: 'chooseyou',
	  component: chooseyou,
		meta: {
		  title: '选择优惠券',
	  }
	},
	{
	  path: '/orderfail',       //选择优惠券
	  name: 'orderfail',
	  component: orderfail,    //取消订单
		meta: {
		  title: '订单支付取消',
	  }
	},
    
    
    
    {
      path: '/zhzc',
      name: 'Zhzhuce',
      component: Zhzhuce,
      meta: {
        title: '注册',
      }
    },
    {
      path: '/wjmm',
      name: 'Wjmima',
      component: Wjmima,
      meta: {
        title: '找回密码',
      }
    },
    {
      path: '/khxf',
      name: 'Khxiaofei',
      component: Khxiaofei,
      meta: {
        title: '客户消费记录',
      }
    },
    {
      path: '/tjka',
      name: 'Tjyinhangka',
      component: Tjyinhangka,
      meta: {
        title: '添加银行卡',
      }
    },
    {
      path: '/ka',
      name: 'Yinhangka',
      component: Yinhangka,
      meta: {
        title: '我的银行卡',
      }
    },
    {
      path: '/xfmx',
      name: 'Xfmingxi',
      component: Xfmingxi,
      meta: {
        title: '消费明细',
      }
    },
    {
      path: '/xf',
      name: 'Xfjilu',
      component: Xfjilu,
      meta: {
        title: '消费记录',
      }
    },
    {
      path: '/txjilu',
      name: 'Txjilu',
      component: Txjilu,
      meta: {
        title: '充值记录',
      }
    },
    {
      path: '/txmingxi',
      name: 'Txmingxi',
      component: Txmingxi,
      meta: {
        title: '充值明细',
      }
    },
    {
      path: '/zxgmm',
      name: 'Xiugaimima2',
      component: Xiugaimima2,
      meta: {
        title: '修改提现密码',
      }
    },
    {
      path: '/xgmma',
      name: 'Xiugaimima3',
      component: Xiugaimima3,
      meta: {
        title: '修改提现密码',
      }
    },
    {
      path: '/xgmm',
      name: 'Xiugaimima1',
      component: Xiugaimima1,
      meta: {
        title: '修改提现密码',
      }
    },
    {
      path: '/qianbao',
      name: 'Qianbao',
      component: Qianbao,
      meta: {
        title: '钱包',
      }
    },
    {
      path: '/zaixiancongzhi',
      name: 'zaixiancongzhi',
      component: zaixiancongzhi,
      meta: {
        title: '在线充值',
      }
    },
    {
      path: '/qmima',
      name: 'Qmima',
      component: Qmima,
      meta: {
        title: '确认提现密码',
      }
    },
    {
      path: '/smima',
      name: 'Smima',
      component: Smima,
      meta: {
        title: '设置提现密码',
      }
    },
    {
      path: '/tixian',
      name: 'Tixian',
      component: Tixian,
      meta: {
        title: '体现',
      }
    },
    {
      path: '/kehu',
      name: 'Kehu',
      component: Kehu,
      meta: {
        title: '我的推荐',
      }
    },
    {
      path: '/youhui',
      name: 'Youhui',
      component: Youhui,
      meta: {
        title: '优惠券',
      }
    },
    {
      path: '/myyouhui',
      name: 'myyouhui',
      component: myyouhui,
      meta: {
        title: '我的优惠券',
      }
    },
    {
      path: '/zan',
      name: 'Zan',
      component: Zan,
      meta: {
        title: '收到的赞',
      }
    },
    {
      path: '/tongzhi',
      name: 'Tongzhi',
      component: Tongzhi,
      meta: {
        title: '账户通知',
      }
    },
    {
      path: '/xiaoxi',
      name: 'Xiaoxi',
      component: Xiaoxi,
      meta: {
        title: '我的消息',
      }
    },
    {
      path: '/study',
      name: 'Study',
      component: Study,
      meta: {
        title: '学习进度',
      }
    },
    {
      path: '/zhuce',
      name: 'Zhuce',
      component: Zhuce,
      meta: {
        title: '推荐注册',
      }
    },
    {
      path: '/order',
      name: 'Order',
      component: Order,
      meta: {
        title: '确认订单',
      }
    },
    {
      path: '/about',
      name: 'Aboutus',
      component: Aboutus,
      meta: {
        title: '关于我们',
      }
    },
    {
      path: '/shezhi',
      name: 'Shezhi',
      component: Shezhi,
      meta: {
        title: '设置',
      }
    },
		{
      path: '/orderSuccess',
      name: 'orderSuccess',
      component: orderSuccess,
      meta:{
        title:'订单支付成功'
      }
    },
		{
		  path: '/newpassword',
		  name: 'newpassword',
		  component: newpassword,
		  meta: {
		    title: '设置密码',
		  }
		},
    {
      path: '/huodong',
      name: 'Huodong',
      component: Huodong,
      meta: {
        title: '活动详情',
      }
    },
    {
      path: '/pl',
      name: 'Pl',
      component: Pl,
      meta: {
        title: '评论',
      }
    },
    {
      path: '/allclass',
      name: 'Allclass',
      component: Allclass,
      meta: {
        title: '全部班级',
      }
    },
    {
      path: '/kefu',
      name: 'Kefu',
      component: Kefu,
      meta: {
        title: '销售中心',
      }
    },
    {
      path: '/teacher',
      name: 'Teacher',
      component: Teacher,
      meta: {
        title: '讲师中心',
      }
    },
    {
      path: '/answer',
      name: 'answer',
      component: answer
    },
    {
      path: '/submit',
      name: 'submit',
      component: submit
    },
    {
      path: '/anslysis',
      name: 'anslysis',
      component: anslysis
    },
    {
      path: '/answer',
      name: 'answer',
      component: answer
    },
    {
      path: '/classes',
      name: 'Myclass',
      component: Myclass,
      // meta: {auth: true}
    },
    {
      path: '/class',
      name: 'xq',
      component: Xq
    },
    {
      path:'/myclass',
      name:'Myclass',
      component:Myclass,
      meta: {
        title: '我的班级',
      }
    },
    {
      path: '/found',
      name: 'Found',
      component: Found,
      meta:{
        title:'发现'
      }
    },
    {
      path: '/',
      name: 'Footer',
      component: Footer,
      children:[
        {
          path: '/',
          name: 'Shouye',
          component: Shouye,
          meta:{
            title:'赛思医考帮'
          }
        },

        {
          path: '/user',
          name: 'user',
          component: user,
          meta:{
            title:'我的'
          }
        },
        
      ]
    },
    {
      path: '/swiper',
      name: 'Swiper',
      component: Swiper,
    },
    {
      path: '/demand',
      name: 'demand',
      component: demand,
      meta:{
        title:''
      }
    },
		{
		  path: '/demo',
		  name: 'demo',
		  component: demo,
		  meta:{
		    title:''
		  }
		},
    {
      path: '/shouquan',
      name: 'Shouquan',
      component: Shouquan,
      meta:{
        title:'授权'
      }
    },
    {
      path: '/zhiye',
      name: 'Zhiye',
      component: Zhiye,
      meta:{
        title:'医学专升本'
      }
    },{
      path: '/zhuzhi',
      name: 'zhuzhi',
      component: zhuzhi,
      meta:{
        title:'护士资格证'
      }
    },
    {
      path: '/xiaoqi',
      name: 'xiaoqi',
      component: xiaoqi,
      meta:{
        title:'赛思直播'
      }
    },
    {
      path: '/denglu',
      name: 'Denglu',
      component: Denglu,
      meta:{
        title:'登录'
      }
    },
    {
      path: '/center',
      name: 'Center',
      component: Center,
      meta:{
        title:'我的'
      }
    },
    {
      path: '/bangding',
      name: 'Bangding',
      component: Bangding,
      meta:{
        title:'绑定'
      }
    },
    {
      path: '/tel',
      name: 'Tel',
      component: Tel,
      meta:{
        title:'绑定'
      }
    },
    {
      path: '/people',
      name: 'People',
      component: People,
      meta:{
        title:'完善资料'
      }
    },
    {
      path: '/now',
      name: 'Now',
      component: Now,
      meta:{
        title:'更换绑定'
      }
    },
    {
      path: '/before',
      name: 'Before',
      component: Before,
      meta:{
        title:'更换绑定'
      }
    },
    {
      path: '/code',
      name: 'Code',
      component: Code,
      meta:{
        title:'更换绑定'
      }
    },
    {
      path: '/focus',
      name: 'Focus',
      component: Focus,
      meta:{
        title:'我的关注'
      }
    },
    {
      path: '/collect',
      name: 'Collect',
      component: Collect,
      meta:{
        title:'我的收藏'
      }
    },
    {
      path: '/publish',
      name: 'Publish',
      component: Publish,
      meta:{
        title:'我发布的'
      }
    },
    {
      path: '/buy',
      name: 'Buy',
      component: Buy,
      meta:{
        title:'购买记录'
      }
    },
    {
      path: '/zhuanti',
      name: 'Zhuantike',
      component: Zhuantike,
      meta:{
        title:'专题课'
      }
    },
    {
      path: '/specialtopic',
      name: 'specialtopic',
      component: specialtopic,
      meta:{
        title:''
      }
    },
    {
      path: '/zixun',
      name: 'Zixun',
      component: Zixun,
      meta:{
        title:'资讯中心'
      }
    },
    {
      path: '/News',
      name: 'News',
      component: News,
      meta:{
        title:'资讯详情'
      }
    },
    {
      path: '/forecast',
      name: 'Allforecast',
      component: Allforecast,
      meta:{
        title:'全部预告'
      }
    },
    {
      path: '/kx',
      name: 'Kx',
      component: Kx,
      meta:{
        title:''
      }
    },
    {
      path: '/search',
      name: 'Search',
      component: Search,
      meta:{
        title:'搜索'
      }
    },
    {
      path: '/sjieguo',
      name: 'Sjieguo',
      component: Sjieguo,
      meta:{
        title:'搜索结果'
      }
    },
    {
      path: '/steach',
      name: 'Steach',
      component: Steach,
      meta:{
        title:'老师主页'
      }
    },
    {
      path: '/course',
      name: 'course',
      component: course,
      meta:{
        title:'',
      }
    },
  ]
})
